package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Course entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "course", catalog = "common")
public class Course implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer courseMark;
	private String courseName;
	private String keyWord;
	private short type;
	private String introduce;
	private boolean isShow;

	// Constructors

	/** default constructor */
	public Course() {
	}

	/** minimal constructor */
	public Course(Integer courseMark, String courseName, String keyWord,
			short type, boolean isShow) {
		this.courseMark = courseMark;
		this.courseName = courseName;
		this.keyWord = keyWord;
		this.type = type;
		this.isShow = isShow;
	}

	/** full constructor */
	public Course(Integer courseMark, String courseName, String keyWord,
			short type, String introduce, boolean isShow) {
		this.courseMark = courseMark;
		this.courseName = courseName;
		this.keyWord = keyWord;
		this.type = type;
		this.introduce = introduce;
		this.isShow = isShow;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "courseMark", nullable = false)
	public Integer getCourseMark() {
		return this.courseMark;
	}

	public void setCourseMark(Integer courseMark) {
		this.courseMark = courseMark;
	}

	@Column(name = "courseName", nullable = false, length = 30)
	public String getCourseName() {
		return this.courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	@Column(name = "keyWord", nullable = false, length = 150)
	public String getKeyWord() {
		return this.keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	@Column(name = "type", nullable = false)
	public short getType() {
		return this.type;
	}

	public void setType(short type) {
		this.type = type;
	}

	@Column(name = "introduce", length = 65535)
	public String getIntroduce() {
		return this.introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	@Column(name = "isShow", nullable = false)
	public boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(boolean isShow) {
		this.isShow = isShow;
	}

}